package com.ziJing.multithreading.sync;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @program Multithreading
 * @description:
 * @author: zhangbo
 * @create: 2022/05/03 15:43
 */
public class T09_TestReadWriteLock {

    static ReadWriteLock readWriteLock = new ReentrantReadWriteLock();
    static Lock readLock = readWriteLock.readLock();
    static Lock writeLock = readWriteLock.writeLock();

    public static void read(Lock lock){
        synchronized (lock){

        }
    }
}
